/**
 * Desenvolvido pela Fábrica de Software do CESUPA.
 * Todos os direitos reservados.
 */
package br.cesupa.fabsoft.nomedoprojeto.system.infra.view;

import java.io.Serializable;

/**
 * Represents the type of a {@link Message}. Used by the view to properly render
 * the related message.
 *
 * @author Breno Leite
 */
public enum MessageType implements Serializable {

    INFO("info"), ERROR("error"), WARNING("warning"),
    VALIDATION("validation"), SUCCESS("success"), PERMISSION_DENIED("permission-denied");
    private String name;

    MessageType(final String name) {
        this.name = name;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
}
